.navbar {
    /* 清除导航栏的默认边距 */
    /* margin: 0;
    padding: 10px 0; */
    /* 设置背景色（如果需要的话） */
    background-color: #398bc5; /* 半透明黑色背景，以便在图片上更清晰地显示文本 */
    /* 其他样式 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.search-container {
    max-width: 1500px;
    margin: 20 auto;
    text-align: left; /* 改为左对齐，以便在更小的屏幕上也能正常显示 */
}

#search-input {
    width: calc(100% - 100px); /* 使用calc函数来动态计算宽度，留下足够的空间给按钮 */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block; /* 设置为内联块级元素，以便与按钮并排显示 */
    vertical-align: middle; /* 垂直对齐，确保输入框和按钮在垂直方向上居中对齐 */
}

#search-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block; /* 设置为内联块级元素，以便与输入框并排显示 */
    vertical-align: middle; /* 垂直对齐 */
    margin-left: 0 px; /* 添加一些左边距，使按钮与输入框之间有一些间隔 */
}

#search-button:hover {
    background-color: #45a049;
}

.search-results {
    margin-top: 20px;
}

.image-container {
    display: flex; /* 启用Flexbox布局 */
    justify-content: space-between; /* 子元素之间留有空间 */
}

.links {
    display: flex;
    justify-content: flex-end;
}

.links a {
    margin-right: 5px; /* 设置链接之间的间距 */
}

.links a:last-child {
    margin-right: 0; /* 移除最后一个链接的右边距 */
}

.keyword {
    color: inherit;
    transition: color 0.3s ease;
    cursor: pointer;
}

.highlighted {
    color: rgba(255, 182, 83, 1);
}




.modal {
    display: none; /* 隐藏模态窗口 */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}


/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#sketcher {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
}


.hidden {
    display: none;
}

.visible {
    display: block; /* 或者根据需要使用其他值，如flex, inline-block等 */
}

.cav_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.cav_column {
    flex: 1; /* 使得两列宽度相等 */
    margin: 10px;
}
canvas {
    border: 1px solid #ccc; /* 可选：为canvas添加边框以便于观察 */
}



/* 响应式设计 */
@media (max-width: 600px) {
    .search-container {
        padding: 0 20px;
    }
    #search-input {
        width: 100%; /* 在小屏幕上，让输入框占据全部宽度 */
    }
    #search-button {
        margin-left: 0; /* 在小屏幕上，移除按钮的左边距 */
        margin-top: 10px; /* 可以考虑添加上边距来分隔输入框和按钮 */
    }
}